{include file="public/header280" /}
<div class="layui-fluid">
  <div class="layui-card">
    <div class="layui-card-body">
      <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" >
        <div class="layui-upload" id="upload-thumb">
          <label class="layui-form-label">头像</label>
          <div class="layui-upload-list">
            <img class="layui-upload-img" id="demo1" width="150" height="150" {notempty name="$item.userProfile['avatar']"}src="{$item.userProfile['avatar']}"{/notempty} >
          </div>
          <label class="layui-form-label"></label>
          <p id="demoText"></p>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">需求方</label>
          <div class="layui-input-inline">
            <input type="text" value="{$item.userProfile['nickname']}" disabled class="layui-input" style="border: none" />
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">用户ID</label>
            <div class="layui-input-inline">
              <input type="tel" value="{$item.user_id}" disabled class="layui-input" style="border: none" />
            </div>
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">项目</label>
          <div class="layui-input-block">
            <input type="text" value="{$item.title}" disabled class="layui-input" style="border: none" />
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">订单时间</label>
          <div class="layui-input-inline">
            <input type="text" value="{$item.create_time}" class="layui-input" style="border: none" />
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">支付时间</label>
            <div class="layui-input-inline">
              <input type="text" value="{$item.payment_at|default=''}" class="layui-input" style="border: none" />
            </div>
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">支付状态</label>
          <div class="layui-input-inline">
            {if $item.status == 1}
              <input type="button" class="layui-btn layui-btn-radius" value="已支付" />
            {elseif $item.status == 2}
              <input type="button" class="layui-btn layui-btn-warm layui-btn-radius" value="取消支付" />
            {elseif $item.status == -1}
              <input type="button" class="layui-btn layui-btn-danger layui-btn-radius" value="支付失败"  />
            {else/}

            {/if}
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">订单编号</label>
          <div class="layui-input-inline">
            <input type="text" class="layui-input" value="{$item.order_sn}" style="border: none" />
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">交易单号</label>
            <div class="layui-input-inline">
              <input type="text" value="{$item.transaction_id|default=''}" class="layui-input" style="border: none" />
            </div>
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">订单总额</label>
          <div class="layui-input-inline">
            <input type="text" class="layui-input" value="{$item.amount}" style="border: none" />
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">支付金额</label>
            <div class="layui-input-inline">
              <input type="text" value="{$item.pay_amount}" class="layui-input" style="border: none" />
            </div>
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">余额支付</label>
            <div class="layui-input-inline">
              <input type="text" value="{$item.pay_balance}" class="layui-input" style="border: none" />
            </div>
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">支付方式</label>
            <div class="layui-input-inline">
              {if $item.pay_type == 1}
                <input type="button" class="layui-btn layui-btn-radius" value="微信" />
              {elseif $item.pay_type == 2}
                <input type="button" class="layui-btn layui-btn-radius" value="余额" />
              {elseif $item.pay_type == 3}
                <input type="button" class="layui-btn layui-btn-radius" value="微信+余额" />
              {/if}
            </div>
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">项目进度</label>
          <div class="layui-input-inline">
            <input type="button" class="layui-btn layui-btn-radius" value="{$item.service_process_status}" />
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">需求方</label>
            <div class="layui-input-inline">
              <input type="button" class="layui-btn layui-btn-radius" value="{$item.demand_process_status}" />
            </div>
          </div>
        </div>
        <div class="layui-form-item layui-hide">
          <input type="hidden" name="id" value="{$item.id}" />
          <input type="button" lay-submit lay-filter="Lay-app-form-edit" id="Lay-app-form-edit" value="编辑">
        </div>
      </div>
    </div>
  </div>
</div>
<script>
  layui.use(['layer', 'form', 'laydate', 'layedit'], function(){
    var $ = layui.$
            ,form = layui.form
            ,laydate = layui.laydate
            ,layedit = layui.layedit;
  })
</script>
</body>
</html>